package com.mallcloud.mall.admin.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mallcloud.mall.common.core.constant.enums.RegionLevelEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@ApiModel(value = "SysRegion", description = "区域")
@Data
@TableName(value = "sys_region", autoResultMap = true)
public class SysRegion implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="id")
    private Long id;

    @ApiModelProperty(value="行政区划代码")
    private Long regionCode;

    @ApiModelProperty(value="名称")
    private String name;

    @ApiModelProperty(value="上级id")
    private Long parentId;

	/**
	 * {@link RegionLevelEnum}
	 */
	@ApiModelProperty(value="等级")
    private String levelId;

}
